package com.itheima.hello;

import java.util.Scanner;
public class Test1{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个大于100的三位数：");
        int i = sc.nextInt();
        int count = 0;

        int sun = 0;
        for(int j = 100 ; j <= i; j++){
            if(j % 10 != 7 && j /10 % 10 != 5 && j / 100 % 10 != 3){
                System.out.println(j);
                sun += j;
            }
            count ++;//用于记录循环的次数累加
        }
        System.out.println("数字的个数是：" + count + "个；"+"数字的和为：" + sun);
    }
}